﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game
{
    class Level
    {
        public void Run()
        {
            Font sans12;
            Font sans10;
            sans12 = new Font("data/Joystix.ttf", 12);
            sans10 = new Font("data/Joystix.ttf", 10);

            Hardware.ClearScreen();

            Image tic = new Image("data/tic.png");
            Image level1 = new Image("data/level1.png");
            Image level2 = new Image("data/level2.png");
            Image level3 = new Image("data/level3.png");
            Image level4 = new Image("data/level4.png");

            
            Hardware.DrawHiddenImage(level1, 120, 50);
            Hardware.DrawHiddenImage(level2, 120, 250);
            Hardware.DrawHiddenImage(level3, 370, 50);
            Hardware.DrawHiddenImage(level4, 370, 250);
            

            Hardware.WriteHiddenText("Hit ESC to return",
               600, 560,
               0, 176, 0,
               sans12);

            Hardware.WriteHiddenText("Level 1",
               125, 155,
               0xCC, 0xCC, 0xCC,
               sans12);
            Hardware.WriteHiddenText("Level 2",
              400, 155,
              0xCC, 0xCC, 0xCC,
              sans12);
            Hardware.WriteHiddenText("Level 3",
              125, 355,
              0xCC, 0xCC, 0xCC,
              sans12);
            Hardware.WriteHiddenText("Level 4",
              400, 355,
              0xCC, 0xCC, 0xCC,
              sans12);


            //Hardware.DrawHiddenImage(tic, 120, 50);
            Hardware.ShowHiddenScreen();

            do
            {
                Hardware.Pause(20);
            }
            while (!Hardware.KeyPressed(Hardware.KEY_ESC));
        }
    }
}
